package com.netx.generics.sql;
import java.text.DateFormat;

import com.netx.generics.time.Date;
import com.netx.generics.time.Moment;
import com.netx.generics.time.Time;


public class Row {

	private final Table _parent;
	private final int _index;

	Row(Table t, int index) {
		_parent = t;
		this._index = index;
	}
	
	public Table getTable() {
		return _parent;
	}

	public int getColumnCount() {
		return _parent.getColumnCount();
	}

	public int getColumnIndex(String colname) {
		return _parent.getColumnIndex(colname);
	}
	
	public String getColumnName(int index) {
		return _parent.getColumnName(index);
	}

	public String getString(int column) {
		return _parent.getString(column, _index);
	}

	public String getString(String column) {
		return _parent.getString(column, _index);
	}

	public boolean getBoolean(int column) throws NumberFormatException {
		return _parent.getBoolean(column, _index);
	}

	public boolean getBoolean(String column) throws NumberFormatException {
		return _parent.getBoolean(column, _index);
	}

	public char getChar(int column) {
		return _parent.getChar(column, _index);
	}

	public char getChar(String column) {
		return _parent.getChar(column, _index);
	}

	public byte getByte(int column) {
		return _parent.getByte(column, _index);
	}

	public byte getByte(String column) {
		return _parent.getByte(column, _index);
	}

	public short getShort(int column) {
		return _parent.getShort(column, _index);
	}

	public short getShort(String column) {
		return _parent.getShort(column, _index);
	}

	public int getInt(int column) {
		return _parent.getInt(column, _index);
	}

	public int getInt(String column) {
		return _parent.getInt(column, _index);
	}

	public long getLong(int column) {
		return _parent.getLong(column, _index);
	}

	public long getLong(String column) {
		return _parent.getLong(column, _index);
	}

	public float getFloat(int column) {
		return _parent.getFloat(column, _index);
	}

	public float getFloat(String column) {
		return _parent.getFloat(column, _index);
	}

	public double getDouble(int column) {
		return _parent.getDouble(column, _index);
	}

	public double getDouble(String column) {
		return _parent.getDouble(column, _index);
	}

	public Date getDate(int column, DateFormat df) {
		return _parent.getDate(column, _index, df);
	}

	public Date getDate(int column) {
		return _parent.getDate(column, _index);
	}

	public Date getDate(String column, DateFormat df) {
		return _parent.getDate(column, _index, df);
	}

	public Date getDate(String column) {
		return _parent.getDate(column, _index);
	}

	public Time getTime(int column, DateFormat df) {
		return _parent.getTime(column, _index, df);
	}

	public Time getTime(int column) {
		return _parent.getTime(column, _index);
	}

	public Time getTime(String column, DateFormat df) {
		return _parent.getTime(column, _index, df);
	}

	public Time getTime(String column) {
		return _parent.getTime(column, _index);
	}

	public Moment getMoment(int column, DateFormat df) {
		return _parent.getMoment(column, _index, df);
	}

	public Moment getMoment(int column) {
		return _parent.getMoment(column, _index);
	}

	public Moment getMoment(String column, DateFormat df) {
		return _parent.getMoment(column, _index, df);
	}

	public Moment getMoment(String column) {
		return _parent.getMoment(column, _index);
	}

}
